package com.threefish.common.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.LinkedHashMap;

/**
 * @author 黄川 huchuc@vip.qq.com
 * @date: 2018/9/10
 */
@Component
@ConfigurationProperties(prefix = "fw.shiro",ignoreInvalidFields = true)
public class ShiroProperties  {

    String loginUrl;

    String unauthorizedUrl;

    LinkedHashMap<String, String> filters = new LinkedHashMap<>();

    public String getLoginUrl() {
        return loginUrl;
    }

    public void setLoginUrl(String loginUrl) {
        this.loginUrl = loginUrl;
    }

    public String getUnauthorizedUrl() {
        return unauthorizedUrl;
    }

    public void setUnauthorizedUrl(String unauthorizedUrl) {
        this.unauthorizedUrl = unauthorizedUrl;
    }

    public LinkedHashMap<String, String> getFilters() {
        return filters;
    }

    public void setFilters(LinkedHashMap<String, String> filters) {
        this.filters = filters;
    }
}
